<%@ page pageEncoding="utf-8" language="java"%>
<%@ taglib uri="/WEB-INF/tld/jstl/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fn.tld" prefix="fn" %>
<%@ taglib uri="/WEB-INF/tld/struts/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-menu/struts-menu.tld" prefix="menu"%>
<%@ taglib uri="/WEB-INF/tld/struts-menu/struts-menu-el.tld" prefix="menu-el"%>
<HTML>
<HEAD>
	<TITLE>&nbsp;</TITLE>
	<html:base/>
	<link href="styles/struts-menu/menuExpandable.css" rel="stylesheet" type="text/css" media="screen" />
	<link href="styles/struts-menu/global.css" rel="stylesheet" type="text/css" media="all" />
	<script src="js/struts-menu/menuExpandable.js" type="text/javascript"></script>
	<link href="styles/struts-menu/xtree.css" rel="stylesheet" type="text/css" media="all" />
	<script src="js/struts-menu/xtree.js" type="text/javascript"></script>
</HEAD>
<BODY>

<!-- h3>Function List</h3> -->
<script type="text/javascript">

<menu:useMenuDisplayer name="Velocity" config="/templates/xtree.html" repository="repository"
	bundle="org.apache.struts.action.MESSAGE">
	<!-- bundle="org.apache.struts.action.MESSAGE" -->
    if (document.getElementById) {
	    <c:forEach var="menu" items="${repository.topMenus}">
	        <menu-el:displayMenu name="${menu.name}"/>
	    </c:forEach>
	} else {
  		var msg = "Your browser does not support document.getElementById().\n";
    		msg += "You must use a modern browser for this menu.";
  		alert(msg);
	}
</menu:useMenuDisplayer>

</script>
</BODY>
</HTML>
